package vue;

import java.awt.Dimension;
import java.awt.Toolkit;

import javax.swing.BoxLayout;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;

public class Attente extends JFrame{

	JPanel panelView;
	JPanel panelBrowse;
	
	JButton exit;
	JButton back;
	
	JLabel resultat;
	JLabel resultatCout;
	JLabel production;
	JLabel centrale1;
	JLabel centrale2;
	JLabel centrale3;
	JLabel centrale4;
	JLabel centrale5;
	
	public Attente()
	{
		exit = new JButton("Quitter");
		back = new JButton("Retour");
		
		resultat = new JLabel("Calcul en cours, veuillez patienter s'il vous plait...");
		panelView = new JPanel();
		panelView.add(resultat);
			this.add(panelView);
		Toolkit tk = Toolkit.getDefaultToolkit();
		Dimension screenSize = tk.getScreenSize();
		int screenHeight = screenSize.height;
		int screenWidth = screenSize.width;

		this.setSize(screenWidth / 2, screenHeight / 2);
		this.setLocation(screenWidth / 2, screenHeight / 3);
		this.setPreferredSize(new Dimension(350,160));
		this.pack();
		this.setVisible(true);
	}
	
	public static void main(String[] args) {
	
		Attente myWaiting = new Attente();
	}
}
